package jack.com.verificationcodeview;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.animation.CycleInterpolator;
import android.widget.LinearLayout;

import com.tuo.customview.VerificationCodeView;


public class MainActivity extends AppCompatActivity {
    private LinearLayout content;
    private VerificationCodeView icv;
    private VerificationCodeView input_et;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

        input_et = (VerificationCodeView) findViewById(R.id.input_et);

    }
    public void onHaha(View view){
        Animation shake = AnimationUtils.loadAnimation(this, R.anim.shake);
        CycleInterpolator cycleInterpolator = new CycleInterpolator(7);
        shake.setInterpolator(cycleInterpolator);
        input_et.startAnimation(shake);
    }
}
